package com.charlotte.study.gupao.chain.general;

/**
 * @author junjie.ding
 * @date 2020/3/16
 */
public class Test {

    public static void main(String[] args) {
        Handler handlerA = new ConcreteHandlerA();
        Handler handlerB = new ConcreteHandlerB();

        handlerA.setNextHandler(handlerB);

        handlerA.handlerRequest("requestA");

        handlerB.handlerRequest("requestB");
    }
}
